package com.rose.doorto.footbathdoor.service.impl;/**
 * @Author 李庆超
 * @email 1481791489@qq.com
 * @Package：com.rose.doorto.footbathdoor.service.impl
 * @Project：door-to-door
 * @name：OrderItemServiceImpl
 * @date 2024/08/07 2024/8/7:17:05:
 */

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rose.doorto.footbathdoor.mapper.OrderItemMapper;
import com.rose.doorto.footbathdoor.mapper.OrderMapper;
import com.rose.doorto.footbathdoor.pojo.Order;
import com.rose.doorto.footbathdoor.pojo.OrderItem;
import com.rose.doorto.footbathdoor.service.OrderItemService;
import com.rose.doorto.footbathdoor.service.OrderService;
import com.rose.doorto.footbathdoor.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author 李庆超
 * @email 1481791489@qq.com
 * @Package：com.rose.doorto.footbathdoor.service.impl
 * @Project：door-to-door
 * @name：OrderItemServiceImpl
 * @date 2024/08/07 2024/8/7:17:05:
 */
@Service
@Transactional
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {

    @Autowired
    private OrderItemMapper mapper;

    @Override
    public int addOrderItem(OrderVo orderVo) {
        return mapper.addOrderItem(orderVo);
    }
}
